<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" href="style.css" type="text/css"></link>
</head>
<body>
<div id="header">
<h1>Document management system</h1>

</div>
<div id="main">
<h1>Login to your account</h1>
<label class="error"><%=request.getAttribute("error") != null ? request.getAttribute("error") : "" %></label>
<form method="POST" action="AuthServlet">
<table>
<tr><td>Username : </td><td><input type="text" name="username" value="<%=request.getParameter("username")!=null? request.getParameter("username") : ""%>" size="20" /></td></tr>
<tr><td>Password : </td><td><input type="password" name="password" size="20" /></td></tr>
<tr><td></td><td><input type="checkbox" name="type" id="type" value="true" /><label for="type">Basic ? (default LDAP)</label></td></tr>
<tr><td><input type="submit" value="Submit" name="B1"></td><td></td></tr>
</table>
</form>
</div>
</body>
</html>